package com.learnyou.server.xingzuo.dto.resultDTO;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Objects;

@Data
public class SimpleGuardianDTO {

    @ApiModelProperty("家长id")
    private Integer guardianId;

    @ApiModelProperty("家长姓名")
    private String guardianName;


    @ApiModelProperty(value = "和学生的关系")
    private String guardianRelation;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SimpleGuardianDTO that = (SimpleGuardianDTO) o;
        return guardianName.equals(that.guardianName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(guardianName);
    }
}
